package main

import (
	"filemanager/cmd"
	"fmt"
)

func main() {
	dir := "E:\\C++"
	suffix := "exe"

	existed := cmd.FileIsExisted(dir)
	if existed != true {
		fmt.Println("file or dir is not existed")
		return
	}

	files, err := cmd.WalkDir(dir, suffix)
	if err != nil {
		fmt.Println(err)
		return
	}

	//for i := 0; i < len(files); i++ {
	//	fmt.Println(files[i])
	//}

	err = cmd.Remove(files)
	if err != nil {
		fmt.Println(err)
	}
}
